package com.ytjj.bigdata.controller;

import com.ytjj.bigdata.model.dto.AdsChannelCountDto;
import com.ytjj.bigdata.service.AdsChannelCountService;
import com.ytjj.common.api.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/adsChannel")
public class AdsChannelCountController {
    @Autowired
    private AdsChannelCountService adsChannelCountService;

    @PostMapping("/adsList")
    public CommonResult adsList(@RequestBody AdsChannelCountDto adsChannelCountDto) {
        return CommonResult.success(adsChannelCountService.selectAdsChannel(adsChannelCountDto));
    }
}
